
variable "credential_vcsa" {
  description = "Credential for vsphere"
  type        = map(string)
  default = {
    user     = ""
    password = ""
    server   = ""
  }
}

variable "env_vcsa" {
  description = "Environment vsphere"
  type        = map(string)
  default = {
    dc      = ""
    cluster = ""
    storage = ""
    network = ""
  }
}

variable "domain_name" {
  description = ""
  type        = string
  default     = ""
}

# variable "credential_k8s" {
#   description = "Credential for k8s"
#   type        = string
#   default     = "~/.kube/config"
# }

variable "user" {
  description = "User"
  type        = map(string)
  default = {
    name       = ""
    public_key = ""
  }
}

variable "template" {
  description = "Template for clone vm"
  type        = string
}

variable "vsphere_folder" {
  description = "Folder for VMs"
  type        = string
  default     = ""
}

variable "vms" {
  description = "Sitings VMs"
  type = list(object({
    name         = string
    ipv4_address = string
    ipv4_netmask = string
    ipv4_gateway = string
    dns1         = string
    num_cpus     = number
    memory       = number
    size_disk    = number
  }))
  default = []
}